#!/bin/bash
Logs_PATH=/usr/local/nginx/logs/access
Yesterday=$(date -d "yesterday" +%Y%m%d)
mv ${Logs_PATH}/web_access.log ${Logs_PATH}/web_access_${Yesterday}.log
mv ${Logs_PATH}/biyouxinjr_access.log ${Logs_PATH}/biyouxinjr_access_${Yesterday}.log
kill -USR1 $(cat /var/run/nginx.pid)

